package com.welsy.iter.vo.iter.pattern
{
	[Bindable]
	public class IterState
	{	
		public static var edit:String = "0";	
		public static var publish:String = "1";
					
		public static var stateIter:Object = {
								"0":"In Bozza"
							   ,"1":"Pubblicato"
							};	
		
		public static var isEdit:Object = {
								"0":true
								,"1":false
							};
												
		public static var visibleButton:Object = {
								"0":true
								,"1":false
							};
							
		public static function getStateIter(x : String) : String {
			return stateIter[x];
		}
		
		public static function getVisibleButton(x : String) : Boolean {
			return visibleButton[x];
		}
		
		public static function Editabled(x : String) : Boolean {
			return isEdit[x];
		}
	}	
}